package com.tiger.cloud.enums;

import com.tiger.cloud.common.mybatis.handler.CodeEnum;

/**
 * 通用枚举类型
 */
public enum UserCompanyInfoIBizType implements CodeEnum<UserCompanyInfoIBizType> {
	//NO_MORTGAGE(1, "无抵押"),BRIDGE(2, "零用贷")
	CAR_MORTGAGE(0, "车辆抵押"), NO_MORTGAGE(1, "企业无抵押"), BRIDGE(2, "个人无抵押"), ADVANCE_MONEY(3, "垫资空放"),
	IMMOVABLE_PROPERTY(4, "不动产抵押"), OTHER_PROPERTY(5, "其他抵押")
	, INTERMEDIARY_SERVICES(6, "银行中介")
	, INTERMEDIARY_SERVICES1(7, "资方")
	, INTERMEDIARY_SERVICES3(8, "金融律师")
	, INTERMEDIARY_SERVICES4(9, "征信查询")
	, INTERMEDIARY_SERVICES5(10, "催收")
	, INTERMEDIARY_SERVICES6(11, "资产处理")
	, INTERMEDIARY_SERVICES7(12, "其他金服")
	, INTERMEDIARY_SERVICES8(13, "房产经纪人")
	, INTERMEDIARY_SERVICES9(14, "车辆经纪人")
	, INTERMEDIARY_SERVICES10(15, "保险经纪人");

	private int code;
	private String desc;

	private UserCompanyInfoIBizType(int code, String desc) {
		this.code = code;
	}

	/**
     * 通过枚举<code>name</code>获取枚举
     */
    public static UserCompanyInfoIBizType getEnumByCode(Integer code) {
    	if(code==null){
    		return null;
    	}
        for (UserCompanyInfoIBizType enumm : UserCompanyInfoIBizType.values()) {
            if (enumm.getCode()==code.intValue()) {
                return enumm;
            }
        }
        return null;
    }
    
	@Override
	public int getCode() {
		return code;
	}

	public String getDesc() {
		return desc;
	}

}
